<?php
class Application_Form_FicheTest extends Zend_Form
{
	public function init()
	{
		$this->setName("Fiche Test");
		
	    $collaborateur = new Zend_Form_Element_Select("CollaborateurT");
		$collaborateur->setRequired(true);
		$collaborateur->setAttrib("class", "styledselect_form_1");
		$table = new Application_Model_DbTable_Utilisateur();
		
		foreach ( $table->GroupeCollaborateur() as $c)
		{
			$collaborateur->addMultiOption($c->id, $c->lname);
		}
		
		$chargeheure = new Zend_Form_Element_Text("ChargeHeureT");
		//$chargeheure->setLabel("Charge en heure : ");
		$chargeheure->setAttrib("class", "inp-form");
		
		$compagne = new Zend_Form_Element_Text("CompagneT");
		//$compagne->setLabel("Compagne :");
		$compagne->setAttrib("class", "inp-form");
		
		$date = new Zend_Form_Element_Text("DateT");
		//$date->setLabel("Date :");
		$date->setAttrib("class", "inp-form");
		
		$incriptionButton = new Zend_Form_Element_Submit("incriptionButton");
		$incriptionButton->setLabel("Ajouter");
		$incriptionButton->setAttrib("class", "form-submit");
		
		$annulerButton = new Zend_Form_Element_Button("annulerInscriButton");
		$annulerButton->setAttrib("onClick", "window.location='acceuil'");
		$annulerButton->setAttrib("class", "form-reset");

		$resetButton = new Zend_Form_Element_Reset("resetButton");
		$resetButton->setLabel("Effacer");
		
		
		$this->addElements(array($collaborateur,$chargeheure,$compagne,$date,$incriptionButton,$annulerButton,$resetButton));
	
	}
}
?>